package edu.designPattern.Adapter;

/**
 * 适配器类,翻译官
 *
 * @Author ltb
 * @Date 2021/6/27 2:08 下午
 * @Version 1.0
 */
public class Translator extends Player{

    private ForeignCenter foreignCenter = new ForeignCenter();

    public Translator(String name) {
        super(name);
        foreignCenter.setName(name);
    }

    @Override
    public void Attack() {
        foreignCenter.进攻();
    }

    @Override
    public void Defense() {
        foreignCenter.防守();
    }
}
